<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="../../../static/css/style.css" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="../../../static/js/jquery.js"></script>
  <script type="text/javascript" src="../../../static/js/getParameter.js"></script>
  <script>
    function getCustomInfo(){
      let customId = getParameter("customid");
      $.ajax({
        url: `/custom/${customId}`,
        type: "get",
        dataType: "json",
        success:(data)=>{
          let detailInfo=data.data;
          $(".name").text(detailInfo.customname);
          $(".sex").text(detailInfo.sex==2?'男':'女');
          $(".company").text(detailInfo.company);
          $(".phone").text(detailInfo.telephone);
          $(".homeaddress").text(detailInfo.homeaddress);
          $(".address").text(detailInfo.provinceName+detailInfo.cityName);
          $(".distract").text(detailInfo.distract);
          $(".status").text(detailInfo.status==1?'可用':'不可用');
          $(".createdName").text(detailInfo.createdName);
          $(".createtime").text(detailInfo.createtime);
        }
      })
    }
    $(()=>{
      getCustomInfo()
    })
  </script>
</head>
<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li>营销管理</li>
    <li>客户管理</li>
    <li>客户详情</li>
  </ul>
</div>
<div class="formbody">
  <div class="formtitle"><span>客户信息</span></div>
  <ul class="forminfo">
    <li>
      <label>姓名</label>
      <cite class="name"></cite>
    </li>
    <li>
      <label>性别</label>
      <cite class="sex"></cite>
    </li>
    <li>
      <label>所属公司名称</label>
      <cite class="company"></cite>
    </li>
    <li>
      <label>联系方式</label>
      <cite class="phone"></cite>
    </li>
    <li>
      <label>联系地址</label>
      <cite class="homeaddress"></cite>
    </li>
    <li>
      <label>所属区域</label>
      <cite class="address"></cite>
    </li>
    <li>
      <label>描述</label>
      <cite class="distract"></cite>
    </li>
    <li>
      <label>状态</label>
      <cite class="status"></cite>
    </li>
    <li>
      <label>创建人</label>
      <cite class="createdName"></cite>
    </li>
    <li>
      <label>创建时间</label>
      <cite class="createtime"></cite>
    </li>
    <li>
      <label>&nbsp;</label>
      <input name="" type="button" class="btn" value="返回" onclick="window.history.go(-1);"/>
    </li>
  </ul>
</div>
</body>
</html>
